package pack1015.fengzhuang;

public class Book {

    private int number;
    private String name;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        if (number < 200) {
            System.out.println("书页数不够，默认值200");
            this.number = 200;
            return;
        }
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "number:" + number + ",name:" + name;
    }
}